package com.shiguiwu.springmybatis.algorithm.linkedlist;

/**
 * @description: 关于引用的测试
 * @author: stone
 * @date: Created by 2021/3/9 11:29
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.linkedlist
 */
public class ReferTests {

    public static void main(String[] args) {
        A a = new A();
        System.out.println(a);
        B b = new B();
        b.setAge(1);
        a.b = b;
        System.out.println(a.b);

        b = new B();
        System.out.println(a.b);

    }
}
